package me.green.ui;

import javax.swing.JEditorPane;

import me.green.bean.User;
import me.green.ui.system.TrayMenu;

/**
 * 系统的常用数据Bean类
 *
 * @author Green
 */
public class LocalCache {

    private static User user;

    private static EtnFrame frameApp;
    private static TrayMenu sysTray = null;
    private static boolean lock = false;

    public static User getUser() {
        return user;
    }

    public static void setUser(User user) {
        LocalCache.user = user;
    }

    public static EtnFrame getFrameApp() {
        return frameApp;
    }

    public static void setFrameApp(EtnFrame frameApp) {
        LocalCache.frameApp = frameApp;
    }

    public static TrayMenu getSysTray() {
        return sysTray;
    }

    public static void setSysTray(TrayMenu sysTray) {
        LocalCache.sysTray = sysTray;
    }

    public static boolean isLock() {
        return lock;
    }

    public static void setLock(boolean lock) {
        LocalCache.lock = lock;
    }
}
